home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
utility
/
611
/
cy
/
cy.doc
next >
Wrap
Text File
|
1992-05-09
|
1KB
|
37 lines
CY.TTP - Command Line Utility to change the YEAR stamp of Files
----------------------------------------------------------------
Many of us like to order our files according to date. Hence the
oft-used files (the programs etc.) tend to be dated in the future - so
that they continue to "float" above the more recent files made. This
system has much to commend it - and, indeed, if you do use this system
already or wish to try it, you will find CY.TTP very useful.
Its use is simple - if no args. are given it explains its usage
viz.
Usage: cy <last 2 digs of Yr)> [-i] <filename(s)>
the -i flag being optional, and if set causes CY to ask before changing
the Year Label of any file.
e.g.
i/ cy 02 wordplus.prg
will change the year label on the file WORDPLUS.PRG to 2002. Everything
else - the day, month and timestamp is unaltered. Usually, one can remember,
- to within which year at least - when files were created. Hence, even in
this system it is not difficult to know which are the most "recent" files
if ONLY the Year Label is altered.
ii/ cy 98 -i *.prg *.ttp
will ask you whether you wish the Year stamp of each file that matches the
wildcard pattern to be changed to the year 1998. Wildcards can only by used
from a shell (e.g. GULAM, MSH etc.). If invoked from the desktop the full
name(s) must be entered.
Cheers, W. Alan B. Evans,
[wabe@ukc.ac.uk]